<Window
  x:Class="WPFExcelReport.JobDetailWindow"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
  Title="编辑"
    xmlns:Localization="clr-namespace:Localization;assembly=Localization"  
  xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls" 
    xmlns:AF="clr-namespace:WPFExcelReport;assembly=TABFOLGE"
    Name="TV"
  Height="Auto"
  Width="300">
    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.Resources>
            <ucd:BoolToVisibilityConverter x:Key="BoolToVisibilityConverter" />
            <ucd:GB2312Convert8859P1 x:Key="gb2312" />
        </Grid.Resources>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="1*"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <StackPanel>
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="1*"></ColumnDefinition>
                    <ColumnDefinition Width="1*"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock  Grid.Column="0"    HorizontalAlignment="Right"    Margin="0,0,0,0"    VerticalAlignment="Center"   Width="Auto"   TextAlignment="Right"   Text="{Binding Source={Localization:Translate Word=类型:}}" />
                <TextBlock  Grid.Column="1"   HorizontalAlignment="Left"    TextWrapping="Wrap"   Text="{Binding dwJob.JOBTYPE, Mode=TwoWay}"   VerticalAlignment="Top" />
            </Grid>
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="1*"></ColumnDefinition>
                    <ColumnDefinition Width="1*"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Row="0" Grid.Column="0"    HorizontalAlignment="Right"    Margin="0,0,0,0"    VerticalAlignment="Center"   Width="Auto"   TextAlignment="Right"   Text="{Binding Source={Localization:Translate Word=ID:}}" />
                <TextBlock  Grid.Row="0" Grid.Column="1"   HorizontalAlignment="Left"    TextWrapping="Wrap"   Text="{Binding dwJob.ABAID, Mode=TwoWay}"   VerticalAlignment="Top" />
            </Grid>
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="1*"></ColumnDefinition>
                    <ColumnDefinition Width="1*"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Row="1" Grid.Column="0"   HorizontalAlignment="Right"   Height="18"      TextWrapping="Wrap"   VerticalAlignment="Top"   TextAlignment="Right"   Text="{Binding Source={Localization:Translate Word=单号:}}" />
                <WrapPanel Grid.Row="1" Grid.Column="1" >
                    <TextBlock    Text="{Binding dwJob.ABFAUFKRS, Mode=TwoWay}"   VerticalAlignment="Top" />
                    <TextBlock    Text="{Binding dwJob.ABFAUFLFD, Mode=TwoWay}"   VerticalAlignment="Top" />
                    <TextBlock    Text="{Binding dwJob.ABFAUFPOS, Mode=TwoWay}"   VerticalAlignment="Top" />
                </WrapPanel>
            </Grid>
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="1*"></ColumnDefinition>
                    <ColumnDefinition Width="1*"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Row="2" Grid.Column="0"  Text="{Binding Source={Localization:Translate Word=任务号:}}"  HorizontalAlignment="Right"   Height="18"      TextWrapping="Wrap"   VerticalAlignment="Top"     TextAlignment="Right"   />
                <TextBlock Grid.Row="2" Grid.Column="1"    Text="{Binding dwJob.MKFTP, Mode=TwoWay}"   VerticalAlignment="Top" />
            </Grid>
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="1*"></ColumnDefinition>
                    <ColumnDefinition Width="1*"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Row="6" Grid.Column="0"  Text="{Binding Source={Localization:Translate Word=事件:}}"  HorizontalAlignment="Right"   Height="18"      TextWrapping="Wrap"   VerticalAlignment="Top"     TextAlignment="Right"   />
                <TextBox Grid.Row="6" Grid.Column="1"    Text="{Binding dwJob.ABPART, Mode=TwoWay, Converter={StaticResource ResourceKey=gb2312}}"   VerticalAlignment="Top" />
            </Grid>
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="1*"></ColumnDefinition>
                    <ColumnDefinition Width="1*"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Row="3" Grid.Column="0"  Text="{Binding Source={Localization:Translate Word=设备:}}"  HorizontalAlignment="Right"   Height="18"      TextWrapping="Wrap"   VerticalAlignment="Top"     TextAlignment="Right"   />
                <WrapPanel Grid.Row="3" Grid.Column="1"  >
                    <TextBlock   Text="{Binding dwJob.MachineID, Mode=TwoWay}"   VerticalAlignment="Top" />
                </WrapPanel>
            </Grid>
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="1*"></ColumnDefinition>
                    <ColumnDefinition Width="1*"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Row="4" Grid.Column="0"  Text="{Binding Source={Localization:Translate Word=开始日期:}}"  HorizontalAlignment="Right"   Height="18"      TextWrapping="Wrap"   VerticalAlignment="Top"    TextAlignment="Right"   />
                <TextBox Grid.Row="4" Grid.Column="1"    Text="{Binding dwJob.MKFPLDATV, Mode=TwoWay}"   VerticalAlignment="Top" />
            </Grid>
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="1*"></ColumnDefinition>
                    <ColumnDefinition Width="1*"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Row="5" Grid.Column="0"  Text="{Binding Source={Localization:Translate Word=开始时间:}}"  HorizontalAlignment="Right"   Height="18"      TextWrapping="Wrap"   VerticalAlignment="Top"     TextAlignment="Right"   />
                <TextBox Grid.Row="5" Grid.Column="1"    Text="{Binding dwJob.MKFPLTIME, Mode=TwoWay}"   VerticalAlignment="Top" />
            </Grid>
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="1*"></ColumnDefinition>
                    <ColumnDefinition Width="1*"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Row="6" Grid.Column="0"  Text="{Binding Source={Localization:Translate Word=持续时间:}}"  HorizontalAlignment="Right"   Height="18"      TextWrapping="Wrap"   VerticalAlignment="Top"     TextAlignment="Right"   />
                <TextBox Grid.Row="6" Grid.Column="1"    Text="{Binding dwJob.ABFAMASCHZT, Mode=TwoWay}"   VerticalAlignment="Top" />
            </Grid>
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="1*"></ColumnDefinition>
                    <ColumnDefinition Width="1*"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Row="4" Grid.Column="0"  Text="{Binding Source={Localization:Translate Word=结束日期:}}"  HorizontalAlignment="Right"   Height="18"      TextWrapping="Wrap"   VerticalAlignment="Top"    TextAlignment="Right"   />
                <TextBox Grid.Row="4" Grid.Column="1"    Text="{Binding dwJob.ENDATE, Mode=TwoWay}"   VerticalAlignment="Top" />
            </Grid>
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="1*"></ColumnDefinition>
                    <ColumnDefinition Width="1*"></ColumnDefinition>
                    <ColumnDefinition Width="1*"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Column="0"  Text="{Binding Source={Localization:Translate Word=结束时间:}}"  HorizontalAlignment="Right"   Height="18"      TextWrapping="Wrap"   VerticalAlignment="Top"     TextAlignment="Right"   />
                <TextBox  Grid.Column="1"    Text="{Binding dwJob.ENDTIME, Mode=TwoWay}"   VerticalAlignment="Top" />
                <TextBlock Grid.Column="2" Text="{Binding Path=ART}" Width="Auto"  Margin="5,0,0,0"></TextBlock>
            </Grid>
        </StackPanel>
    </Grid>
</Window>
